﻿
'Description:检测项业务类接口
'Copyright (c) : 通力凯顿（北京）系统集成有限公司
'Writer:Yangsj
'create Date:2017-4-19
'Rewriter:
'Rewrite Date:
Imports Camstar.WebClient.WebServicesProxy.InSiteWebServices
Imports BusinessRule.DTO

Public Interface uLMSStepCheckPointIBusiness
    ''' <summary>
    ''' 获取检测项列表
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetStepCheckPointList(ByVal para As Dictionary(Of String, String)) As uMESProcessResult

    ''' <summary>
    ''' 更新工序检测项
    ''' </summary>
    Function UpdateStepCheckPoint(ByVal para As Dictionary(Of String, String)) As Boolean

    ''' <summary>
    ''' 获取批次工序实测值数据
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetStepCheckPointResultData(ByVal para As Dictionary(Of String, String)) As DataTable

    ''' <summary>
    ''' 添加实测值信息
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function AddStepCheckResultInfo(ByVal para As Dictionary(Of String, String)) As Boolean

    ''' <summary>
    ''' 更新实测值信息
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function UpdateStepCheckResultInfo(ByVal para As Dictionary(Of String, String)) As Boolean

    ''' <summary>
    ''' add by yuxj,删除工序检测项
    ''' </summary>
    ''' <param name="productid"></param>
    ''' <param name="name"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function DeleteStepCheckinfo(ByVal productid As String, ByVal stepid As String, ByVal name As String) As Boolean


    Function DeleteStepCheckinfo(ByVal StepCheckPointID As String, ByVal imgPath As String) As Boolean

    ''' <summary>
    ''' add by yuxj,添加工序检测项
    ''' </summary>
    Function InsertIntoStepCheckPointTable(ByVal para As Dictionary(Of String, String)) As Boolean

    ''' <summary>
    ''' Add by Yuxj20180124 获取当前(非装试)工序/(装试)工步实测值的最大录入次数
    ''' </summary>
    ''' <param name="StepCheckPointId"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetMaxSequenceById(ByVal StepCheckPointId As String, ByVal containerid As String, ByVal factoryid As String) As Integer

    ''' <summary>
    ''' Add by Yuxj20181010
    ''' </summary>
    ''' <param name="StepCheckPoint"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function DeleteStepCheckinfo(ByVal StepCheckPoint As String) As Boolean

    ''' <summary>
    ''' 检验员保存工序检测值 add by Duht 20201201
    ''' </summary>
    Function SaveCheckResultByCheck(ByVal para As Dictionary(Of String, String)) As Boolean

    Function SaveCheckResultByCheck(ByVal para As Dictionary(Of String, String), ByVal childDt As DataTable)

    ''' <summary>
    ''' 工人保存工序检测值 add by Duht 20201201
    ''' </summary>
    Function SaveCheckResultByWorker(ByVal para As Dictionary(Of String, String)) As Boolean

    Function GetStepCheckInfoByWorker(ByVal para As Dictionary(Of String, String)) As DataTable

    ''' <summary>
    ''' 查询报工信息，实测值用
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetWorkreportInfoByContainer(ByVal para As Dictionary(Of String, String)) As DataTable
    ''' <summary>
    ''' 将检测项转化为HTML显示内容
    ''' </summary>
    ''' <param name="strCheckCode"></param>
    ''' <param name="usingCheckPath"></param>
    ''' <param name="isUseIp"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function ConvertTohtml(ByVal strCheckCode As String, ByVal usingCheckPath As String, ByVal isUseIp As Boolean) As String

    ''' <summary>
    ''' 获取实测值录入的检测项列表
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetInputStepCheckPointList(ByVal para As Dictionary(Of String, String)) As uMESProcessResult

    ''' <summary>
    ''' 删除实测值信息（通过ID）add by zhangrj 2021-11-12
    ''' </summary>
    Function DeleteCheckResultById(ByVal checkResultId As String, ByVal usingImgPath As String) As Boolean


    ''' <summary>
    ''' 删除工人实测值信息
    ''' </summary>
    ''' <param name="checkResultId"></param>
    ''' <param name="usingImgPath"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function DeleteWorkerResultById(ByVal checkResultId As String, ByVal usingImgPath As String) As Boolean

    ''' <summary>
    ''' 保存实测值信息（二检） Add by zhangrj 20220824 
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function SaveCheckResultBySecondCheck(ByVal para As Dictionary(Of String, String)) As Boolean

    ''' <summary>
    ''' 删除二检实测值信息（通过ID） add by zhangrj 2022-08-24
    ''' 'update wangjh 删除时增加删除img文件 20211112
    ''' </summary>
    ''' <param name="checkResultId"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function DeleteSecondCheckResultById(ByVal checkResultId As String, ByVal usingImgPath As String) As Boolean

    ''' <summary>
    ''' 保存导入
    ''' </summary>
    ''' <param name="para"></param>
    ''' <param name="type"></param>
    ''' <param name="msg"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function SaveCheckPointResultByImport(ByVal para As Dictionary(Of String, String), ByVal type As Integer, ByRef msg As String) As Boolean
    ''' <summary>
    ''' 获取批次工序的检测项
    ''' </summary>
    ''' <param name="workflowstepId"></param>
    ''' <param name="stepInfoID"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetContainerCheckPointList(ByVal workflowstepId As String, ByVal stepInfoID As String) As DataTable
    ''' <summary>
    ''' 批量保存检验实测值 add by zhangrj 2022-10-26
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function SaveBatchCheckResultByCheck(ByVal para As List(Of Dictionary(Of String, String))) As Boolean
    ''' <summary>
    ''' 检测项--实测值提取
    ''' </summary>
    ''' <param name="content"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetCheckPointValue(ByVal content As String) As List(Of Dictionary(Of String, String))
    ''' <summary>
    ''' 检测项--基准值，上公差，下公差 更新
    ''' </summary>
    ''' <param name="listPara"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function UpdateStepCheckPointValue(ByVal listPara As List(Of Dictionary(Of String, Object))) As Boolean
    ''' <summary>
    ''' 获取SPC异常失控预警数据
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetStepCheckPointSpcWarningData(ByVal para As Dictionary(Of String, String)) As uMESProcessResult

End Interface
